import { GET_LOADING_INFO } from './action'
export const LoadingInfo = (preState = false, action) => {
    const { type, payload } = action
    switch (type) {
        case GET_LOADING_INFO:
            return payload
        default:
            return preState
    }
}